<table>
    <thead>
    <tr>
        <td>#</td>
        <td>Товар</td>
        <td>Цена</td>
        <td>Количество</td>
        <td>Сумма</td>
        <td>Дата заказа</td>
        <td>Дата доставки</td>
        <td>Доставлено</td>
    </tr>
    </thead>
    <?php foreach($orders as $order): ?>
        <tr>
            <td><?php echo $order->id?></td>
            <td><?php echo $order->name ?></td>
            <td><?php echo $order->price ?></td>
            <td><?php echo $order->quantity?></td>
            <td><?php echo $order->price * $order->quantity ?></td>
            <td><?php echo $order->create_date ?></td>
            <td><?php echo $order->required_date ?></td>
            <td><?php echo (!empty($order->shipped_date)) ? $order->shipped_date : 'Еще не доставлено' ?></td>
        </tr>
    <?php endforeach ?>
</table>